package cn.dlc.com.account.service;

import cn.dlc.com.account.entity.Account;
import cn.dlc.com.log.entity.AccountChangeEvent;

/**
 * @author 邓立川
 * @date 2021/1/12 16:52
 * @desc 添加当前类的描述信息
 */
public interface AccountService {

    /**
     * 发送消息（更新账户的消息）给mq
     * @param accountChangeEvent
     */
    void sendMsg(AccountChangeEvent accountChangeEvent);

    /**
     * 更新账户
     * @param accountChangeEvent
     */
    void updateAccountBalance(AccountChangeEvent accountChangeEvent);

}
